public class CopyNodeWithNoHashMap {


    public void  copyNext(Node head){
        while (head!=null){
            Node node = new Node<>(head.val);
            head.next =node;
            node.next =head.next;
            head =head.next;
        }
    }
}
